home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / c / library / bcfamily / source / dosslp18.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1993-06-12  |  666 b   |  27 lines

  1. //
  2. //      *******************************************************************
  3. //        JdeBP C++ Library Routines          General Public Licence v1.00
  4. //            Copyright (c) 1991,1992     Jonathan de Boyne Pollard
  5. //      *******************************************************************
  6. //
  7. // Part of FamAPI.LIB
  8. //
  9.  
  10. #include "famapi.h"
  11. #include "dosdos.h"
  12.  
  13. //
  14. //    Stop the process for a while using the BIOS timer
  15. //
  16. void _APICALL
  17. DosDosSleep18 ( unsigned long delay )
  18. {
  19.     volatile unsigned long far *biostime = (volatile unsigned long far *)MK_FP(0x40, 0x6c);
  20.  
  21.     while (delay > 0) {
  22.         unsigned long now = *biostime;
  23.         while (*biostime == now) ;
  24.         delay--;
  25.     }
  26. }
  27.